package book;
public class BookList {
    public Book[] books = new Book[10];
    public int usedSize;
    public BookList(){
        books[0]=new Book("三国演义","罗贯中",10);
        books[1]=new Book("红楼梦","罗贯中",10);
        books[2]=new Book("水浒传","罗贯中",10);
        this.usedSize=3;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,Book books) {
        this.books[pos] = books;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}